﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lm.Common.Auth.Model
{
    partial class Role
    {
        public RoleStatus GetRoleStatus()
        { return (Model.RoleStatus)Enum.Parse(typeof(RoleStatus), this.RoleStatus); }
        public void SetRoleStatus(RoleStatus roleStatus)
        { this.RoleStatus = roleStatus.ToString(); }
    }
    public enum RoleStatus
    { 
        /// <summary>
        /// 草稿，可进行删除和修改
        /// </summary>
        Draft, 
        /// <summary>
        /// 作废状态，不生效，不能进行任何修改
        /// </summary>
        Death, 
        /// <summary>
        /// 可用状态，可修改，修改经审核后才生效
        /// </summary>
        Live 
    }
}
